<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::FieldComparison&lt; PointT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_field_comparison.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_field_comparison-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::FieldComparison&lt; PointT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>The field-based specialization of the comparison object.  
 <a href="classpcl_1_1_field_comparison.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="conditional__removal_8h_source.html">conditional_removal.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::FieldComparison&lt; PointT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_field_comparison.png" usemap="#pcl::FieldComparison_3C_20PointT_20_3E_map" alt=""/>
  <map id="pcl::FieldComparison_3C_20PointT_20_3E_map" name="pcl::FieldComparison_3C_20PointT_20_3E_map">
<area href="classpcl_1_1_comparison_base.html" title="The (abstract) base class for the comparison object." alt="pcl::ComparisonBase&lt; PointT &gt;" shape="rect" coords="0,0,189,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a357c39d001fe04d1bdbaa263ef22f3a2"><td class="memItemLeft" align="right" valign="top"><a id="a357c39d001fe04d1bdbaa263ef22f3a2"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a357c39d001fe04d1bdbaa263ef22f3a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ba83607b12f64cdffb97d4a17164b7a"><td class="memItemLeft" align="right" valign="top"><a id="a6ba83607b12f64cdffb97d4a17164b7a"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a6ba83607b12f64cdffb97d4a17164b7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a4d3a2695be4e844f6fd32c453b82064b inherit pub_types_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a4d3a2695be4e844f6fd32c453b82064b"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1_comparison_base.html">ComparisonBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a4d3a2695be4e844f6fd32c453b82064b inherit pub_types_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a239225d508f06794e90e566f22995b7d inherit pub_types_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a239225d508f06794e90e566f22995b7d"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_comparison_base.html">ComparisonBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a239225d508f06794e90e566f22995b7d inherit pub_types_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4cf475656b05a3a0621b126d04ab004d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a4cf475656b05a3a0621b126d04ab004d">FieldComparison</a> (std::string field_name, ComparisonOps::CompareOp op, double compare_val)</td></tr>
<tr class="memdesc:a4cf475656b05a3a0621b126d04ab004d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="classpcl_1_1_field_comparison.html" title="The field-based specialization of the comparison object.">FieldComparison</a>  <a href="classpcl_1_1_field_comparison.html#a4cf475656b05a3a0621b126d04ab004d">更多...</a><br /></td></tr>
<tr class="separator:a4cf475656b05a3a0621b126d04ab004d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d6f56447c3459f5e667de08569ca4db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a9d6f56447c3459f5e667de08569ca4db">FieldComparison</a> (const <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a> &amp;src)</td></tr>
<tr class="memdesc:a9d6f56447c3459f5e667de08569ca4db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="classpcl_1_1_field_comparison.html#a9d6f56447c3459f5e667de08569ca4db">更多...</a><br /></td></tr>
<tr class="separator:a9d6f56447c3459f5e667de08569ca4db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b08a83223467f6b6085dba9fbab78e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a6b08a83223467f6b6085dba9fbab78e2">operator=</a> (const <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a> &amp;src)</td></tr>
<tr class="memdesc:a6b08a83223467f6b6085dba9fbab78e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy operator.  <a href="classpcl_1_1_field_comparison.html#a6b08a83223467f6b6085dba9fbab78e2">更多...</a><br /></td></tr>
<tr class="separator:a6b08a83223467f6b6085dba9fbab78e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b20fb0c4694d1d8f225f5bae7e8513"><td class="memItemLeft" align="right" valign="top"><a id="a51b20fb0c4694d1d8f225f5bae7e8513"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a51b20fb0c4694d1d8f225f5bae7e8513">~FieldComparison</a> ()</td></tr>
<tr class="memdesc:a51b20fb0c4694d1d8f225f5bae7e8513"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a51b20fb0c4694d1d8f225f5bae7e8513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc5e8dec0e7ffc8a473fa4138158487"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#abbc5e8dec0e7ffc8a473fa4138158487">evaluate</a> (const <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &amp;point) const</td></tr>
<tr class="memdesc:abbc5e8dec0e7ffc8a473fa4138158487"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determine the result of this comparison. <br  />
  <a href="classpcl_1_1_field_comparison.html#abbc5e8dec0e7ffc8a473fa4138158487">更多...</a><br /></td></tr>
<tr class="separator:abbc5e8dec0e7ffc8a473fa4138158487"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="abee85bd5064b70bfecd5b42603010a63"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#abee85bd5064b70bfecd5b42603010a63">ComparisonBase</a> ()</td></tr>
<tr class="memdesc:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="aa567e02abc177e1835c95413d6856e4e"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#aa567e02abc177e1835c95413d6856e4e">~ComparisonBase</a> ()</td></tr>
<tr class="memdesc:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="ab6d09f98dfaba5315dd7b4a72c1d5816"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#ab6d09f98dfaba5315dd7b4a72c1d5816">isCapable</a> () const</td></tr>
<tr class="memdesc:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if the comparison is capable. <br /></td></tr>
<tr class="separator:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a533c90091bac214fde358afc0f6cc39e"><td class="memItemLeft" align="right" valign="top"><a id="a533c90091bac214fde358afc0f6cc39e"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">compare_val_</a></td></tr>
<tr class="memdesc:a533c90091bac214fde358afc0f6cc39e"><td class="mdescLeft">&#160;</td><td class="mdescRight">All types (that we care about) can be represented as a double. <br /></td></tr>
<tr class="separator:a533c90091bac214fde358afc0f6cc39e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74886910ce7eaccd0cd44e131def29ae"><td class="memItemLeft" align="right" valign="top"><a id="a74886910ce7eaccd0cd44e131def29ae"></a>
<a class="el" href="classpcl_1_1_point_data_at_offset.html">PointDataAtOffset</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a></td></tr>
<tr class="memdesc:a74886910ce7eaccd0cd44e131def29ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">The point data to compare. <br /></td></tr>
<tr class="separator:a74886910ce7eaccd0cd44e131def29ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a9664df54f741bccc65d817f9018611f3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a></td></tr>
<tr class="memdesc:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if capable. <br /></td></tr>
<tr class="separator:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="afe5a8620d01d90ba4600e45f1da8d508"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#afe5a8620d01d90ba4600e45f1da8d508">field_name_</a></td></tr>
<tr class="memdesc:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Field name to compare data on. <br /></td></tr>
<tr class="separator:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="ac0eeefbdc9bb6408c60272f4e02bdf90"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#ac0eeefbdc9bb6408c60272f4e02bdf90">offset_</a></td></tr>
<tr class="memdesc:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The data offset. <br /></td></tr>
<tr class="separator:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a709e0c328ab14d502be0454380932652"></a>
ComparisonOps::CompareOp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a></td></tr>
<tr class="memdesc:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The comparison operator type. <br /></td></tr>
<tr class="separator:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT&gt;<br />
class pcl::FieldComparison&lt; PointT &gt;</h3>

<p>The field-based specialization of the comparison object. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4cf475656b05a3a0621b126d04ab004d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cf475656b05a3a0621b126d04ab004d">&#9670;&nbsp;</a></span>FieldComparison() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_field_comparison.html">pcl::FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>field_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ComparisonOps::CompareOp&#160;</td>
          <td class="paramname"><em>op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>compare_val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a <a class="el" href="classpcl_1_1_field_comparison.html" title="The field-based specialization of the comparison object.">FieldComparison</a> </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">field_name</td><td>the name of the field that contains the data we want to compare </td></tr>
    <tr><td class="paramname">op</td><td>the operator to use when making the comparison </td></tr>
    <tr><td class="paramname">compare_val</td><td>the constant value to compare the field value too </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  : ComparisonBase&lt;PointT&gt; ()</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  , <a class="code" href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">compare_val_</a> (compare_val), <a class="code" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a> (NULL)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <a class="code" href="classpcl_1_1_comparison_base.html#afe5a8620d01d90ba4600e45f1da8d508">field_name_</a> = field_name;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <a class="code" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a> = op;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="comment">// Get all fields</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  std::vector&lt;pcl::PCLPointField&gt; point_fields;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="comment">// Use a dummy cloud to get the field types in a clever way</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <a class="code" href="classpcl_1_1_point_cloud.html">PointCloud&lt;PointT&gt;</a> dummyCloud;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <a class="code" href="group__common.html#gaa2ff830572b7cbf2fd8ce335fd9ca4fb">pcl::getFields</a> (dummyCloud, point_fields);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="comment">// Find field_name</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordflow">if</span> (point_fields.empty ())</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::FieldComparison::FieldComparison] no fields found!\n&quot;</span>);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">// Get the field index</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keywordtype">size_t</span> d;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordflow">for</span> (d = 0; d &lt; point_fields.size (); ++d)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> (point_fields[d].name == field_name) </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keywordflow">if</span> (d == point_fields.size ())</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::FieldComparison::FieldComparison] field not found!\n&quot;</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  uint8_t datatype = point_fields[d].datatype;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  uint32_t offset = point_fields[d].offset;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <a class="code" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a> = <span class="keyword">new</span> PointDataAtOffset&lt;PointT&gt;(datatype, offset);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_comparison_base_html_a709e0c328ab14d502be0454380932652"><div class="ttname"><a href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">pcl::ComparisonBase::op_</a></div><div class="ttdeci">ComparisonOps::CompareOp op_</div><div class="ttdoc">The comparison operator type.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:122</div></div>
<div class="ttc" id="aclasspcl_1_1_comparison_base_html_a9664df54f741bccc65d817f9018611f3"><div class="ttname"><a href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">pcl::ComparisonBase::capable_</a></div><div class="ttdeci">bool capable_</div><div class="ttdoc">True if capable.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:113</div></div>
<div class="ttc" id="aclasspcl_1_1_comparison_base_html_afe5a8620d01d90ba4600e45f1da8d508"><div class="ttname"><a href="classpcl_1_1_comparison_base.html#afe5a8620d01d90ba4600e45f1da8d508">pcl::ComparisonBase::field_name_</a></div><div class="ttdeci">std::string field_name_</div><div class="ttdoc">Field name to compare data on.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:116</div></div>
<div class="ttc" id="aclasspcl_1_1_field_comparison_html_a533c90091bac214fde358afc0f6cc39e"><div class="ttname"><a href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">pcl::FieldComparison::compare_val_</a></div><div class="ttdeci">double compare_val_</div><div class="ttdoc">All types (that we care about) can be represented as a double.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:178</div></div>
<div class="ttc" id="aclasspcl_1_1_field_comparison_html_a74886910ce7eaccd0cd44e131def29ae"><div class="ttname"><a href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">pcl::FieldComparison::point_data_</a></div><div class="ttdeci">PointDataAtOffset&lt; PointT &gt; * point_data_</div><div class="ttdoc">The point data to compare.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:181</div></div>
<div class="ttc" id="aclasspcl_1_1_point_cloud_html"><div class="ttname"><a href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a></div><div class="ttdoc">PointCloud represents the base class in PCL for storing collections of 3D points.</div><div class="ttdef"><b>Definition:</b> point_cloud.h:173</div></div>
<div class="ttc" id="agroup__common_html_gaa2ff830572b7cbf2fd8ce335fd9ca4fb"><div class="ttname"><a href="group__common.html#gaa2ff830572b7cbf2fd8ce335fd9ca4fb">pcl::getFields</a></div><div class="ttdeci">void getFields(const pcl::PointCloud&lt; PointT &gt; &amp;cloud, std::vector&lt; pcl::PCLPointField &gt; &amp;fields)</div><div class="ttdoc">Get the list of available fields (i.e., dimension/channel)</div><div class="ttdef"><b>Definition:</b> io.hpp:79</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9d6f56447c3459f5e667de08569ca4db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d6f56447c3459f5e667de08569ca4db">&#9670;&nbsp;</a></span>FieldComparison() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_field_comparison.html">pcl::FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copy constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>the field comparison object to copy into this </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        : ComparisonBase&lt;PointT&gt; ()</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        , <a class="code" href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">compare_val_</a> (src.compare_val_), <a class="code" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a> (src.point_data_)</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;      {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="abbc5e8dec0e7ffc8a473fa4138158487"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc5e8dec0e7ffc8a473fa4138158487">&#9670;&nbsp;</a></span>evaluate()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpcl_1_1_field_comparison.html">pcl::FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::evaluate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determine the result of this comparison. <br  />
 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>the point to evaluate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the result of this comparison. </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1_comparison_base.html#a4c3dbd8f68cb59b0d67bcf7a0b175f2f">pcl::ComparisonBase&lt; PointT &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;{</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a>)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::FieldComparison::evaluate] invalid compariosn!\n&quot;</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">return</span> (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="comment">// if p(data) &gt; val then compare_result = 1</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="comment">// if p(data) == val then compare_result = 0</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="comment">// if p(data) &lt;  ival then compare_result = -1</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="keywordtype">int</span> compare_result = <a class="code" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a>-&gt;compare (point, <a class="code" href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">compare_val_</a>);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordflow">switch</span> (this-&gt;<a class="code" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a>)</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::GT :</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;      <span class="keywordflow">return</span> (compare_result &gt; 0);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::GE :</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;      <span class="keywordflow">return</span> (compare_result &gt;= 0);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::LT :</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;      <span class="keywordflow">return</span> (compare_result &lt; 0);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::LE :</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;      <span class="keywordflow">return</span> (compare_result &lt;= 0);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::EQ :</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;      <span class="keywordflow">return</span> (compare_result == 0);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;      PCL_WARN (<span class="stringliteral">&quot;[pcl::FieldComparison::evaluate] unrecognized op_!\n&quot;</span>);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;      <span class="keywordflow">return</span> (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a6b08a83223467f6b6085dba9fbab78e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b08a83223467f6b6085dba9fbab78e2">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a>&amp; <a class="el" href="classpcl_1_1_field_comparison.html">pcl::FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copy operator. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>the field comparison object to copy into this </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;      {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <a class="code" href="classpcl_1_1_field_comparison.html#a533c90091bac214fde358afc0f6cc39e">compare_val_</a> = src.compare_val_;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <a class="code" href="classpcl_1_1_field_comparison.html#a74886910ce7eaccd0cd44e131def29ae">point_data_</a>  = src.point_data_;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>filters/include/pcl/filters/<a class="el" href="conditional__removal_8h_source.html">conditional_removal.h</a></li>
<li>filters/include/pcl/filters/impl/<a class="el" href="conditional__removal_8hpp_source.html">conditional_removal.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_field_comparison.html">FieldComparison</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
